<?php

// 0 处理中文乱码
header('content-type:text/html;charset=utf-8;');

$name = $_POST['un'];
$password = $_POST['pw'];

// 1 链接数据库
$conn = mysqli_connect('localhost','root','root','zhangsan_game');

// 2 执行sql语句

$res = mysqli_query($conn,"INSERT INTO `yhxx` (`username`,`password`) VALUES ('$name','$password')");

// 3 输出一下结果
// true表示插入成功
echo 1;


?>